package zzg.study.client.console;

import io.netty.channel.Channel;
import zzg.study.protocol.request.LogoutRequestPacket;

import java.util.Scanner;

/**
 * @Classname LogoutConsoleCommand
 * @Description 登出指令
 * @Date 2023/12/10 1:03
 * @Author zhuzhenguo
 */
public class LogoutConsoleCommand implements ConsoleCommand {
    @Override
    public void exec(Scanner scanner, Channel channel) {
        LogoutRequestPacket logoutRequestPacket = new LogoutRequestPacket();
        channel.writeAndFlush(logoutRequestPacket);
    }
}
